package com.xiaodu.mybatis.config;

import com.xiaodu.mybatis.interceptor.DateInterceptor;
import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: dutianjie
 * @date: 2021/4/20
 * @version: v1.0.0
 * @description: 描述
 **/
@Configuration
public class MybatisConfig {

    @Bean
    public ConfigurationCustomizer configurationCustomizer() {
        return configuration -> configuration.addInterceptor(new DateInterceptor());
    }
}
